# -*- coding: utf-8 -*-
"""
-------------------------------------------------
Project Name: luffcity study project
File Name: lambda_test.py
Author: kij
Create Date: 2021/2/16
-------------------------------------------------
"""
v = [lambda: x for x in range(10)]
print(v)  # 10方法
print(v[0])  # 1方法
print(v[0]())  # 9